package com.tupi.project.http;

import com.tupi.project.bean.BaseBean;
import com.tupi.project.bean.MineInfoBean;
import com.tupi.project.bean.PullToRefreshBean;
import com.tupi.project.bean.UserInfoBean;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * api
 */
public interface HttpApis
{
    @POST(ApiUrl.URL_LOGIN)
    Flowable<BaseBean<String, UserInfoBean>> reqLogin(
            @Query("phone") String phone, @Query("password") String password);
    
    @GET(ApiUrl.URL_USER_INFO)
    Flowable<BaseBean<String, MineInfoBean>> reqUserInfoDetail();
    
    @GET(ApiUrl.URL_DISCOUNT_LINES)
    Flowable<BaseBean<PullToRefreshBean, String>> reqIndexDiscountRoute(
            @Query("filters") String filters, @Query("size") int size, @Query("page") int page);
    
    
}
